package com.wcx.application.mapper;

import com.wcx.application.domian.AdminBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface HelloMapper {
    
    @Select("select * from admin where username=#{username}")
    AdminBean selectByUserName(String username);
    @Select("select * from admin where username=#{username} and password=#{password} and state!=0")
    String login(AdminBean adminBean);
}
